<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://unpkg.com/vue@next"></script>
    <title>Document</title>
</head>

<body>

    <div id="app">
        <h1 v-if="type === 'A' ">Vue is awesome!</h1>
        <div v-else-if="type === 'B'">B</div>
        <h1 v-else>Oh no 😢</h1>
        <h1 v-show="ok">Hello!</h1>


        <template v-if="ok">
            <h1>Title</h1>
            <p>Paragraph 1</p>
            <p>Paragraph 2</p>
        </template>

    </div>

    <script>
        const App = {
            data() {
                return {
                    type: 'C',
                    ok: false
                }
            }
        }
        Vue.createApp(App).mount('#app')
    </script>

</body>

</html>